package com.baseframe.sys.service.dao;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.baseframe.sys.entity.AppUserRelation;


/**
 * @author Mzl
 */
public interface AppUserRelationRepository  extends PagingAndSortingRepository<AppUserRelation,Integer> {

    int deleteById(int id);
    
    List<AppUserRelation> getByAppidAndAllowtype(int appid, String allowtype);
    
    int deleteByAppidAndAllowtype(int appid, String allowtype);

    List<AppUserRelation> findByAppidAndAllowtype(int appId, String allowType);
}
